//2009/08/17 20:43:39
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class SpreadsheetColumn
{
public:
    string getLabel(int col)
    {
		string s;
		col --;
		int a = col / 26;
		int b = col % 26;
		cout << a << ", " << b << endl;
		if(a > 0) s += 'A' + a - 1;
		cout << s << endl;
		s += 'A' + b;
		cout << s << endl;
		return s;
    }
};
